#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include"ScriptGenerator.h"
#include"ScriptEntry.h"
#include"ScriptGeneratorWizard.h"
#include"SourceType.h"

#include<QWidget>
#include<QHBoxLayout>
#include<QVBoxLayout>
#include<QLineEdit>
#include<QLabel>
#include<QIntValidator>
#include<QPushButton>
#include<QComboBox>
#include<QList>
#include<QTextEdit>

class MainWindow : public QWidget{
    Q_OBJECT
public:
	MainWindow(QWidget *parent = 0);
	~MainWindow();
private:
	QLineEdit *m_guid;
	QWidget *m_upperWidget;
	QHBoxLayout *m_upperLayout;
	QLabel *m_guidLabel;
	QLabel *m_sourceTypeLabel;
	QComboBox *m_sourceTypeCombo;
	QWidget *m_sourceTypeWidget;
	QHBoxLayout *m_sourceTypeLayout;
	QVBoxLayout *m_layout;
	QWidget *m_widget;
	QVBoxLayout *m_innerLayout;
	QPushButton *m_addButton;
	QPushButton *m_buttonGenerate;
	QList<ScriptEntry*> m_entries;
private slots:
	void slotAddClicked();
	void slotAddAlternativeClicked();
	void slotGenerateClicked();
	void deleteMeClicked();
	void editMeClicked();
};

#endif // MAINWINDOW_H
